# -*- coding: UTF-8 -*-
# The Project Setting file
import os, sys

# 当前工程目录
PROJECT_PATH = os.path.dirname(os.path.realpath(__file__))

# 工程代码目录
CODES_DIR = [
    # 辅助代码目录
    os.path.join(PROJECT_PATH),
    os.path.join(PROJECT_PATH,"codes"),
    os.path.join(PROJECT_PATH,"datas")
]
for i in CODES_DIR:
    if i not in sys.path:
        sys.path.append(i)

# 文件保存路径
# map图片路径
FILES_PATH = {
    "MAP_HTML": os.path.join(PROJECT_PATH,"datas\\map.html"),
}

# coon = pymysql.connect(
#         host = "127.0.0.1",
#         port = 3306,
#         user = "root",
#         passwd = "",
#         db = "mydatabase",
#         charset = "utf8"

#     )

# 数据库
DATABASE = {
    "hostname": "127.0.0.1",
    "port": 3306,
    "username": "root",
    "password": "",
    "database": "dronesystem",
    "charset": "utf8"
}

if __name__ == "__main__":

    print(sys.path)